package com.example.test.agent.service.Impl;

import com.example.test.agent.entity.Role;
import com.example.test.agent.dao.RoleDao;
import com.example.test.agent.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import javax.annotation.Resource;
import java.util.List;

/**
 * 角色表(Role)表服务实现类
 *
 * @author makejava
 * @since 2021-05-20 19:53:10
 */
@Service
public class RoleServiceImpl extends ServiceImpl<RoleDao, Role> implements RoleService {

    @Autowired
    private RoleDao roleDao;

    @Override
    public List<Role> findRoleByUserId(Integer userId) {
        return roleDao.findRoleByUserId(userId);
    }

}
